package com.aaa.ssm.service.Impl;

import com.aaa.ssm.entity.GradeDTO;
import com.aaa.ssm.mapper.GradeMapper;
import com.aaa.ssm.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {

    @Autowired
    private GradeMapper gradeMapper;


    @Override
    public List<GradeDTO> listAllGrade() {
        List<GradeDTO> grades = gradeMapper.listAllGrade();
        return grades;
    }


}
